package org.example.huoshan_translation;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class RespBean {

    @SerializedName("TranslationList")
    private List<TranslationListDTO> translationList;
    @SerializedName("ResponseMetadata")
    private ResponseMetadataDTO responseMetadata;

    public List<TranslationListDTO> getTranslationList() {
        return translationList;
    }

    public void setTranslationList(List<TranslationListDTO> translationList) {
        this.translationList = translationList;
    }

    public ResponseMetadataDTO getResponseMetadata() {
        return responseMetadata;
    }

    public void setResponseMetadata(ResponseMetadataDTO responseMetadata) {
        this.responseMetadata = responseMetadata;
    }

    public static class ResponseMetadataDTO {
        @SerializedName("RequestId")
        private String requestId;
        @SerializedName("Action")
        private String action;
        @SerializedName("Version")
        private String version;
        @SerializedName("Service")
        private String service;
        @SerializedName("Region")
        private String region;
        @SerializedName("Error")
        private Object error;

        public String getRequestId() {
            return requestId;
        }

        public void setRequestId(String requestId) {
            this.requestId = requestId;
        }

        public String getAction() {
            return action;
        }

        public void setAction(String action) {
            this.action = action;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getService() {
            return service;
        }

        public void setService(String service) {
            this.service = service;
        }

        public String getRegion() {
            return region;
        }

        public void setRegion(String region) {
            this.region = region;
        }

        public Object getError() {
            return error;
        }

        public void setError(Object error) {
            this.error = error;
        }
    }

    public static class TranslationListDTO {
        @SerializedName("Translation")
        private String translation;
        @SerializedName("DetectedSourceLanguage")
        private String detectedSourceLanguage;

        public String getTranslation() {
            return translation;
        }

        public void setTranslation(String translation) {
            this.translation = translation;
        }

        public String getDetectedSourceLanguage() {
            return detectedSourceLanguage;
        }

        public void setDetectedSourceLanguage(String detectedSourceLanguage) {
            this.detectedSourceLanguage = detectedSourceLanguage;
        }
    }
}
